<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">


    <h:head>
        <title>Add Branch Details</title>
    </h:head>

    <h:body>
        <h:form id="formMain">
            <p:panel id="panel" header="Add Branch Specific Information">
                <p:messages />
                <p:tab title="Branch Operating Hours">
                    <h:panelGrid columns="4" cellpadding="10">

                        <h:outputLabel for="mondayStart" style="font-weight: bold" value="Monday: " />
                        <h:selectOneMenu id="mondayStart" value="#{branchManagerBean.mondayStart}" >
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>
                        <h:outputLabel for="mondayEnd" style="font-weight: bold" value="to" />
                        <h:selectOneMenu id="mondayEnd" value="#{branchManagerBean.mondayEnd}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>

                        <h:outputLabel for="tuesdayStart" style="font-weight: bold" value="Tuesday: " />
                        <h:selectOneMenu id="tuesdayStart" value="#{branchManagerBean.tuesdayStart}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>
                        <h:outputLabel for="tuesdayEnd" style="font-weight: bold" value="to" />
                        <h:selectOneMenu id="tuesdayEnd" value="#{branchManagerBean.tuesdayEnd}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>

                        <h:outputLabel for="wednesdayStart" style="font-weight: bold" value="Wednesday: " />
                        <h:selectOneMenu id="wednesdayStart" value="#{branchManagerBean.wednesdayStart}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>
                        <h:outputLabel for="wednesdayEnd" style="font-weight: bold" value="to" />
                        <h:selectOneMenu id="wednesdayEnd" value="#{branchManagerBean.wednesdayEnd}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>

                        <h:outputLabel for="thursdayStart" style="font-weight: bold" value="Thursday " />
                        <h:selectOneMenu id="thursdayStart" value="#{branchManagerBean.thursdayStart}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>
                        <h:outputLabel for="thursdayEnd" style="font-weight: bold" value="to" />
                        <h:selectOneMenu id="thursdayEnd" value="#{branchManagerBean.thursdayEnd}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>

                        <h:outputLabel for="fridayStart" style="font-weight: bold" value="Friday " />
                        <h:selectOneMenu id="fridayStart" value="#{branchManagerBean.fridayStart}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>
                        <h:outputLabel for="fridayEnd" style="font-weight: bold" value="to" />
                        <h:selectOneMenu id="fridayEnd" value="#{branchManagerBean.fridayEnd}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>

                        <h:outputLabel for="saturdayStart" style="font-weight: bold" value="Saturday " />
                        <h:selectOneMenu id="saturdayStart" value="#{branchManagerBean.saturdayStart}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>
                        <h:outputLabel for="saturdayEnd" style="font-weight: bold" value="to" />
                        <h:selectOneMenu id="saturdayEnd" value="#{branchManagerBean.saturdayEnd}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>

                        <h:outputLabel for="sundayStart" style="font-weight: bold" value="Sunday " />
                        <h:selectOneMenu id="sundayStart" value="#{branchManagerBean.sundayStart}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>
                        <h:outputLabel for="sundayEnd" style="font-weight: bold" value="to" />
                        <h:selectOneMenu id="sundayEnd" value="#{branchManagerBean.sundayEnd}">
                            <f:selectItems value="#{branchManagerBean.operatingHours}" var="opHrs" itemValue="#{opHrs.label}" itemLabel="#{opHrs.label}"/>
                        </h:selectOneMenu>

                    </h:panelGrid>
                </p:tab>
            </p:panel>
        </h:form>
    </h:body>
</html>

